/*
    SUSAN® - Sole of Unix Save ANything

   Copyright (C) 2013-2013 Hechzh Property

   
*/

/*
 * Kern Sibbald, January MM
 *
 * Extracted from other source files by Marco van Wieringen, June 2013
 */

#ifndef BAREOS_LIB_GENERIC_RES_H_
#define BAREOS_LIB_GENERIC_RES_H_ 1

#include "lib/keyword_table_s.h"

#ifndef DIRECTOR_DAEMON
/*
 * Used for message types.
 */
struct s_mtypes {
  const char* name;
  uint32_t token;
};

/*
 * Various message types
 */
static struct s_mtypes msg_types[] = {
    {"debug", M_DEBUG},       {"abort", M_ABORT},
    {"fatal", M_FATAL},       {"error", M_ERROR},
    {"warning", M_WARNING},   {"info", M_INFO},
    {"saved", M_SAVED},       {"notsaved", M_NOTSAVED},
    {"skipped", M_SKIPPED},   {"mount", M_MOUNT},
    {"Terminate", M_TERM},    {"restored", M_RESTORED},
    {"security", M_SECURITY}, {"alert", M_ALERT},
    {"volmgmt", M_VOLMGMT},   {"audit", M_AUDIT},
    {"all", M_MAX + 1},       {NULL, 0}};
#endif /* DIRECTOR_DAEMON */

/*
 * Tape Label types permitted in Pool records
 *
 * tape_label label_code = token
 */
static s_kw tapelabels[] = {{"bareos", B_BAREOS_LABEL},
                            {"ansi", B_ANSI_LABEL},
                            {"ibm", B_IBM_LABEL},
                            {NULL, 0}};

#endif /* BAREOS_LIB_GENERIC_RES_H_ */
